package com.aliyun.oss;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(ALiOSSProperties.class)
public class AliOSSAutoConfiguration {
    @Bean
    public AliOSSUtils getAliOSSUtils(ALiOSSProperties aLiOSSProperties){
        AliOSSUtils aliOSSUtils = new AliOSSUtils();
        aliOSSUtils.setaLiOSSProperties(aLiOSSProperties);
        return aliOSSUtils;
    }
}
